package cn.wolfcode.crm.util;

import java.math.BigDecimal;

/**
 * 记录该项目所有的常量
 */
public class BidConstUtli {
    private BidConstUtli(){}
    //验证码的间隔时间,30秒
    public static final long INTERVALTIME = 30;

    //有效时间,5分钟
    public static final long VALIDTIME = 360;

    //初始化账户的余额,保留四位
    public static final BigDecimal ZERO = new BigDecimal("0.0000");
    //初始化账户授信余额credit granting
    public static final BigDecimal CREDITGRANTING = new BigDecimal("5000.0000");

    /**
     * 显示精度,保留两位小数
     */
    public static final int DISPLAY_SCALE = 2;

    /**
     * 存储精度,保留四位小数
     */
    public static final int STORE_SCALE = 4;

    /**
     * 计算精度,保留八位小数,一般是存储精度的两倍
     */
    public static final int CAL_SCALE = 8;


    // --------------------还款类型---------------------------

    // 按月分期还款(等额本息)
    public final static int RETURN_TYPE_MONTH_INTEREST_PRINCIPAL = 0;

    // 按月到期还款(每月还利息,到期还本息)
    public final static int RETURN_TYPE_MONTH_INTEREST = 1;

    // ---------------------借款状态---------------------------
    public final static int BIDREQUEST_STATE_APPLY = 0;   // 借款申请
    public final static int BIDREQUEST_STATE_PUBLISH_PENDING = 1;   // 待发布
    public final static int BIDREQUEST_STATE_BIDDING = 2;           // 招标中
    public final static int BIDREQUEST_STATE_UNDO = 3;              // 已撤销
    public final static int BIDREQUEST_STATE_BIDDING_OVERDUE = 4;   // 流标
    public final static int BIDREQUEST_STATE_APPROVE_PENDING_1 = 5; // 满标1审
    public final static int BIDREQUEST_STATE_APPROVE_PENDING_2 = 6; // 满标2审
    public final static int BIDREQUEST_STATE_REJECTED = 7;          // 满标审核被拒绝
    public final static int BIDREQUEST_STATE_PAYING_BACK = 8;       // 还款中
    public final static int BIDREQUEST_STATE_COMPLETE_PAY_BACK = 9; // 已还清
    public final static int BIDREQUEST_STATE_PAY_BACK_OVERDUE = 10;  // 逾期
    public final static int BIDREQUEST_STATE_PUBLISH_REFUSE = 11;   // 发标审核拒绝状态

    public static final BigDecimal SMALLEST_BID_AMOUNT = new BigDecimal("50.0000");// 系统规定的最小投标金额
    public static final BigDecimal SMALLEST_BIDREQUEST_AMOUNT = new BigDecimal("500.0000");// 系统规定的最小借款金额
    public static final BigDecimal SMALLEST_CURRENT_RATE = new BigDecimal("5.0000");// 系统最小借款利息
    public static final BigDecimal MAX_CURRENT_RATE = new BigDecimal("20.0000");// 系统最大借款利息


}
